import request from '@/utils/request'

// 查询进修信息列表
export function listEducationTraining(query) {
  return request({
    url: '/profession/educationTraining/list',
    method: 'get',
    params: query
  })
}

// 查询进修信息详细
export function getEducationTraining(id) {
  return request({
    url: '/profession/educationTraining/' + id,
    method: 'get'
  })
}

// 新增进修信息
export function addEducationTraining(data) {
  return request({
    url: '/profession/educationTraining',
    method: 'post',
    data: data
  })
}

// 修改进修信息
export function updateEducationTraining(data) {
  return request({
    url: '/profession/educationTraining',
    method: 'put',
    data: data
  })
}

// 删除进修信息
export function delEducationTraining(id) {
  return request({
    url: '/profession/educationTraining/' + id,
    method: 'delete'
  })
}
